.class Lcom/estrongs/android/pop/app/compress/d$a;
.super Ljava/lang/Thread;
.source "CompressDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/compress/d;->i()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/compress/d;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/compress/d;Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-direct {p0, p2}, Ljava/lang/Thread;-><init>(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 12

    const-string v0, "7z"

    .line 1
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/compress/d;->n(Lcom/estrongs/android/pop/app/compress/d;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x1

    const/16 v3, 0xa

    const/4 v4, 0x0

    const/4 v5, 0x0

    if-eqz v1, :cond_0

    .line 2
    sget-object v1, Lcom/estrongs/io/archive/sevenzip/b;->a:Ljava/lang/String;

    invoke-static {v5, v1}, Lcom/estrongs/io/archive/sevenzip/b;->a(Ljava/lang/Runnable;Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/d;->h(Lcom/estrongs/android/pop/app/compress/d;)Les/a80;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/compress/d;->h(Lcom/estrongs/android/pop/app/compress/d;)Les/a80;

    move-result-object v1

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/compress/d;->a()V

    return-void

    .line 5
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/compress/d;->o(Lcom/estrongs/android/pop/app/compress/d;)Ljava/lang/String;

    move-result-object v1

    .line 6
    iget-object v6, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v6}, Lcom/estrongs/android/pop/app/compress/d;->h(Lcom/estrongs/android/pop/app/compress/d;)Les/a80;

    move-result-object v6

    invoke-virtual {v6, v1}, Les/a80;->b(Ljava/lang/String;)V

    .line 7
    iget-object v6, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v6}, Lcom/estrongs/android/pop/app/compress/d;->d(Lcom/estrongs/android/pop/app/compress/d;)Landroid/widget/EditText;

    move-result-object v6

    invoke-virtual {v6}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    .line 8
    iget-object v7, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v7, v6}, Lcom/estrongs/android/pop/app/compress/d;->a(Lcom/estrongs/android/pop/app/compress/d;Ljava/lang/String;)Ljava/util/Map;

    move-result-object v7

    const-string v8, "zip"

    .line 9
    iget-object v9, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v9}, Lcom/estrongs/android/pop/app/compress/d;->n(Lcom/estrongs/android/pop/app/compress/d;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 10
    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_3

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    new-instance v6, Lcom/estrongs/io/archive/aeszip/c;

    iget-object v8, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v8}, Lcom/estrongs/android/pop/app/compress/d;->a(Lcom/estrongs/android/pop/app/compress/d;)Les/n80;

    move-result-object v8

    invoke-direct {v6, v1, v8, v7}, Lcom/estrongs/io/archive/aeszip/c;-><init>(Ljava/lang/String;Les/l80;Ljava/util/Map;)V

    iput-object v6, v0, Lcom/estrongs/android/pop/app/compress/d;->u:Les/f80;

    goto :goto_0

    .line 12
    :cond_1
    iget-object v8, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v8}, Lcom/estrongs/android/pop/app/compress/d;->n(Lcom/estrongs/android/pop/app/compress/d;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    new-instance v8, Lcom/estrongs/io/archive/sevenzip/e;

    iget-object v9, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v9}, Lcom/estrongs/android/pop/app/compress/d;->a(Lcom/estrongs/android/pop/app/compress/d;)Les/n80;

    move-result-object v9

    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v10

    if-nez v10, :cond_2

    move-object v6, v5

    :cond_2
    invoke-direct {v8, v1, v9, v6}, Lcom/estrongs/io/archive/sevenzip/e;-><init>(Ljava/lang/String;Les/l80;Ljava/lang/String;)V

    iput-object v8, v0, Lcom/estrongs/android/pop/app/compress/d;->u:Les/f80;

    .line 14
    :cond_3
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/compress/d;->u:Les/f80;

    if-nez v0, :cond_4

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    new-instance v6, Les/f80;

    iget-object v8, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v8}, Lcom/estrongs/android/pop/app/compress/d;->a(Lcom/estrongs/android/pop/app/compress/d;)Les/n80;

    move-result-object v8

    invoke-direct {v6, v1, v8, v7}, Les/f80;-><init>(Ljava/lang/String;Les/l80;Ljava/util/Map;)V

    iput-object v6, v0, Lcom/estrongs/android/pop/app/compress/d;->u:Les/f80;

    .line 16
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/compress/d;->u:Les/f80;

    iget-object v6, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v6}, Lcom/estrongs/android/pop/app/compress/d;->i(Lcom/estrongs/android/pop/app/compress/d;)Ljava/util/List;

    move-result-object v6

    invoke-virtual {v0, v6}, Les/f80;->a(Ljava/util/List;)V

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/d;->a(Lcom/estrongs/android/pop/app/compress/d;)Les/n80;

    move-result-object v0

    invoke-virtual {v0}, Les/n80;->a()Z

    move-result v0

    if-eqz v0, :cond_5

    const/16 v0, 0x9

    .line 18
    iget-object v1, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/compress/d;->h(Lcom/estrongs/android/pop/app/compress/d;)Les/a80;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/compress/d;->h(Lcom/estrongs/android/pop/app/compress/d;)Les/a80;

    move-result-object v2

    const/4 v6, 0x7

    invoke-virtual {v2, v6, v3, v4, v5}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    const/16 v11, 0x9

    goto :goto_1

    .line 19
    :cond_5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/compress/d;->h(Lcom/estrongs/android/pop/app/compress/d;)Les/a80;

    move-result-object v0

    iget-object v5, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v5}, Lcom/estrongs/android/pop/app/compress/d;->h(Lcom/estrongs/android/pop/app/compress/d;)Les/a80;

    move-result-object v5

    invoke-virtual {v5, v2, v3, v4, v1}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 20
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v0

    invoke-virtual {v0, v1}, Les/p10;->a(Ljava/lang/String;)V

    const/4 v11, 0x0

    :goto_1
    const-string v5, "compress"

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    iget-object v6, v0, Lcom/estrongs/android/pop/app/compress/d;->E:Ljava/lang/String;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    iget-object v7, v0, Lcom/estrongs/android/pop/app/compress/d;->D:Ljava/lang/String;

    const/4 v8, 0x1

    const-wide/16 v9, 0x0

    invoke-static/range {v5 .. v11}, Lcom/estrongs/android/pop/utils/p;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZJI)V

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/compress/d;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    .line 23
    iget-object v1, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/compress/d;->h(Lcom/estrongs/android/pop/app/compress/d;)Les/a80;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/compress/d;->h(Lcom/estrongs/android/pop/app/compress/d;)Les/a80;

    move-result-object v2

    const/4 v3, 0x2

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v3, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/compress/d;->a()V

    .line 25
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/d$a;->a:Lcom/estrongs/android/pop/app/compress/d;

    iget-object v2, v0, Lcom/estrongs/android/pop/app/compress/d;->E:Ljava/lang/String;

    iget-object v3, v0, Lcom/estrongs/android/pop/app/compress/d;->D:Ljava/lang/String;

    const/4 v4, 0x0

    const-wide/16 v5, 0x0

    const/16 v7, 0x8

    const-string v1, "compress"

    invoke-static/range {v1 .. v7}, Lcom/estrongs/android/pop/utils/p;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZJI)V

    :goto_2
    return-void
.end method
